package com.blb.utils;

import javax.servlet.http.HttpServletRequest;

public class PathUtils {

    /**
     * 获取项目webApp目录
     *
     * @param request
     * @return
     */
    public static String getWebApp(HttpServletRequest request) {
        return request.getServletContext().getRealPath("/");
    }

    /**
     * 获取图标文件路径
     *
     * @param request
     * @return
     */
    public static String getIconFile(HttpServletRequest request) {
        return request.getServletContext().getRealPath("/") + "/static/iconfont/demo_index.html";
    }
}
